import Vue from 'vue'
import App from './App.vue'
import router from '@/router/router'
import api from '@/api/api'
import iView from 'iview'
import '@/plugins/axios'
import '@/plugins/element.js'
import '@/theme/index.less'
import fun from '@/commFunction/common'
import CONST from '@/const/const'
import 'viewerjs/dist/viewer.css'
import Viewer from 'v-viewer'
import VueClipboard from 'vue-clipboard2'

Vue.use(iView)
Vue.use(VueClipboard)
Vue.use(Viewer, {
    defaultOptions: {
        'inline': false,
        'button': true,
        "navbar": true,
        "title": true,
        "toolbar": true,
        "tooltip": true,
        "movable": true,
        "zoomable": true,
        "rotatable": true,
        "scalable": true,
        "transition": true,
        "fullscreen": true,
        "keyboard": true,
        "url": "data-source",
        filter(image) {
            let dataSource = image.getAttribute('data-source')
            return !fun.isBlank(dataSource);
        }
    }
})
Vue.prototype.API = api;
Vue.prototype.CONST = CONST;
Vue.prototype.FUN = fun;

new Vue({
    router,
    render: h => h(App),
}).$mount('#app')
